function ApplicationTabGroup(Window) {
	//create module instance
	var self = Ti.UI.createTabGroup();
	
	//create app tabs
	var win1 = new Window(L('home')),
		win3 = new Window(L('settings')),
		win4 = new Window(L('search')),
		win2 = new Window(L('groups'));
	
	var tab1 = Ti.UI.createTab({
		title: L('All Groups'),
		icon: '/images/KS_nav_ui.png',
		window: win1
	});
	win1.containingTab = tab1;
	
	var tab2 = Ti.UI.createTab({
		title: L('Recent Groups'),
		icon: '/images/KS_nav_views.png',
		window: win2
	});
	win2.containingTab = tab2;
	
	var tab3 = Ti.UI.createTab({
		title: L('View by Category'),
		icon: '/images/KS_nav_views.png',
		window: win2
	});
	win3.containingTab = tab3;
	
	var tab4 = Ti.UI.createTab({
		title: L('Search'),
		icon: '/images/KS_nav_views.png',
		window: win2
	});
	win4.containingTab = tab4;
	
	
	
	
	/*Scroll View*/
	var scrollView = Ti.UI.createScrollView({
	  contentWidth: 'auto',
	  contentHeight: 'auto',
	  showVerticalScrollIndicator: true,
	  showHorizontalScrollIndicator: true,
	  height: '100%',
	  width: '100%'
	});
	
	var view = Ti.UI.createView({
	  backgroundColor:'white',
	  borderRadius: 10,
	  top: 0,
	  height: '90%',
	  width: '90%'
	});
	scrollView.add(view);
	
	
	// Create a Label.
	var signInTitle = Ti.UI.createLabel({ 
		text : "You're not signed in, naughty monkey.",
		color : 'black',
		font:{fontSize:22,fontWeight:'bold',fontFamily:'Helvetica Neue'},
		height : 80,
		width : 300,
		top : 5,
		left : 0,
		textAlign : 'left'
	});
	
	// Create a Label.
	var userNameLbl = Ti.UI.createLabel({ 
		text : 'Username:',
		color : 'black',
		font:{fontSize:12,fontFamily:'Helvetica Neue'},
		height : 50,
		width : 200,
		top : 65,
		left : 0,
		textAlign : 'left'
	});
	
	// Create a TextField.
	var userNameTextField = Ti.UI.createTextField({
		height : 35,
		top : 70,
		left : 80,
		width : 180,
		hintText : 'coboid@email.com',
		keyboardType : Ti.UI.KEYBOARD_DEFAULT,
		returnKeyType : Ti.UI.RETURNKEY_DEFAULT,
		borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED
	});
	
	// Create a Label.
	var userPasswordLbl = Ti.UI.createLabel({
		text : 'Password:',
		color : 'black',
		font:{fontSize:12,fontFamily:'Helvetica Neue'},
		height : 70,
		width : 300,
		top : 95,
		left : 0,
		textAlign : 'left'
	});
	
	// Create a TextField.
	var userPasswordTextField = Ti.UI.createTextField({
		height : 35,
		top : 120,
		left : 80,
		width : 180,
		hintText : 'Whats your password?',
		passwordMask: true,
		keyboardType : Ti.UI.KEYBOARD_DEFAULT,
		returnKeyType : Ti.UI.RETURNKEY_DEFAULT,
		borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED
	});
	
	
	// Create a Button.
	var signButton = Ti.UI.createButton({
		title : 'Sign Me in',
		height : 50,
		width : 160,
		top : 160,
		left : 50
	});
	
	// Listen for click events.
	signButton.addEventListener('click', function() {
		alert('Dude, you are not registered.Come on, goto cobo.com to register.');
	});

	
	// Add to the parent view.
	view.add(signInTitle,userNameTextField,userNameLbl,userPasswordTextField,userPasswordLbl,signButton);
	win1.add(scrollView);
	
	self.addTab(tab1);
	self.addTab(tab2);
	self.addTab(tab3);
	self.addTab(tab4);
	
	return self;
};

module.exports = ApplicationTabGroup;
